package cn.heycm.seata.order.dao;

import cn.heycm.seata.order.dao.entity.Order;
import cn.heycm.seata.order.dao.mapper.OrderMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

/**
 * @author hey
 * @version 1.0
 * @since 2024/9/11 21:21
 */
@Repository
public class OrderRepository {

    @Autowired
    private OrderMapper orderMapper;

    public void save(Integer orderId, String orderAmount) {
        Order order = new Order();
        order.setId(orderId);
        order.setOrderAmount(orderAmount);
        orderMapper.insertSelective(order);
    }
}
